/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Assignment.DTO;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author dieptn
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "orders"
})
@XmlRootElement(name = "Orders")
public class OrderListDTO {

    @XmlElement(required = true, name = "Order")
    protected List<OrderDTO> orders;

    public List<OrderDTO> getOrderList() {
        if (orders == null) {
            orders = new ArrayList<OrderDTO>();
        }
        return this.orders;
    }
}
